package csc.daonjpa.java.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import csc.daonjpa.java.dao.LogDAO;
import csc.daonjpa.java.domain.Customer;
import csc.daonjpa.java.domain.Log;

@Service
public class LogService {

	@Autowired
	private LogDAO logDAO;
	
	public void createLog(String content, Long customerId) {
		logDAO.createLog(content, customerId);
	}
	
	public void createLog(String content, Customer customer) {
		logDAO.createLog(content, customer);
	}
	
	public List<Log> getLogs() {
		return logDAO.getLogs();
	}
}
